package ustc.xiaoyang.utils;

public class ThreadLocalUtils {
    private final static ThreadLocal<Integer> CURRENT_EMP_ID = new ThreadLocal<>();

    public static Integer getCurrentEmpId() {
        return CURRENT_EMP_ID.get();
    }
    public static void setCurrentEmpId(Integer empId) {
        CURRENT_EMP_ID.set(empId);
    }
    public static void remove() {
        CURRENT_EMP_ID.remove();
    }
}
